package com.zwb.demo;

import com.zwb.demo.reader.Main;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;

import java.io.IOException;

/**
 * 配置工具
 */
@SpringBootApplication
public class ConfigToolApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication app = new SpringApplication(ConfigToolApplication.class);
        app.setBannerMode(Banner.Mode.OFF);
        ApplicationContext context = app.run(args);
        Main bean = context.getBean(Main.class);
        bean.main();

    }

}
